<template>
    <div>
        <div class="main_layout">
            <div class="main_left">

            </div>
            <div class="main_middle" :v-model="data">
                <div class="title">
                    {{ title }}
                </div>
            </div>
            <div class="main_right"></div>
        </div>
    </div>

</template>

<script>
import '@/assets/css/index.less'
export default {
    data() {
        return {
            crumbs: [{ id: 1, name: "动漫", data: { id: 1, name: "原神" } }],
            data: {
                id: 202406200000001,
                title: "Python编程入门",
                ds_user_img: require("@/assets/images/touxiang.png"),
                author: "张三",
                ds_date: "2022-01-01",
                ds_content: {
                    title: "标题",
                    text: "Python是一种广泛使用的高级编程语言，适用于Web开发、数据分析、人工智能等领域。本文将介绍Python的基本语法和编程技巧，帮助初学者快速入门,",
                    img: [
                        { id: "01", url: require("@/assets/images/touxiang.png") },
                    ]
                },
                content: "Python是一种广泛使用的高级编程语言，适用于Web开发、数据分析、人工智能等领域。本文将介绍Python的基本语法和编程技巧，帮助初学者快速入门。"
            },
        }
    },
    methods: {
        // const header_layout = 
    },
    mounted() {
        const toppx = window.scroll
        const header_layout = document.querySelector('header_layout')

    }
}
</script>

<style lang="less" scoped>
// height: calc(100vh);


.main_layout {
    display: flex;
    justify-content: center;
    height: calc(100vh - 70px);

    .main_left {
        height: 100%;
        width: 120px;
        margin-right: 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        border-radius: 8px;
        background-color: #5e5e5e;
    }

    .main_middle {
        height: 100%;
        overflow: scroll;
        width: 700px;
        margin-right: 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        border-radius: 8px;
        background-color: #d6c1c1;
    }

    /* 宽度 */
    ::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .main_right {
        height: 100%;
        width: 300px;
        border-radius: 8px;
        background-color: #c4e2fa;
    }
}
</style>